package com.zhongyu.user.consumer.controller;

import com.zhongyu.comm.pojo.LinkUser;
import com.zhongyu.comm.vo.Result;
import com.zhongyu.user.consumer.service.LinkUserService;
import com.zhongyu.user.consumer.vo.LinkUserVo;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class LinkUserController {

    @Resource
    private LinkUserService linkUserService;

    @RequestMapping("/v/queryLinkUser")
    public Result queryLinkUser(@RequestHeader("token") String token){
        List<LinkUserVo> list=linkUserService.queryLinkUser(token);
        return Result.success(list);
    }
}
